package ptij.verifier.test.grammar;

import ptolemy.actor.*;
import ptolemy.kernel.*;
import ptolemy.kernel.util.*;

import java.io.*;

public class Try1 extends AtomicActor {

   public Try1(CompositeEntity container, String name) throws
           NameDuplicationException, IllegalActionException {
       super(container, name);
   }
   
   
   public void fire() throws IllegalActionException {
   
       int a = 1;

       try {       
           File f = new File("sdf");
	   FileInputStream fin = new FileInputStream(f);
       }
       catch(IOException ex) {           
           System.out.println("merda ->" + ex);
       }
       finally {
           a++;
           System.out.println("oi");
       }
       
       int b = 2;
       
       try {

           System.out.println("Tchau");

       }
       catch(NullPointerException ex) {
           b++;
           System.out.println(ex + " isto " + b);
       }
       
       int d = b + 1;
       
       try {
	   System.out.println("sdf");
       }
       finally {
           System.out.println("oi");
       }
       
       int e = 5;

       try {
           System.out.println("sdfsd");
	   return;
       }
       catch(NullPointerException ex) {
          int fx = 2 * e;
	  return;
       }
   }
   
}
